package com.zt.springcloud.service;

import cloud.zt.springboot.utils.ResultUtils;
import com.zt.springcloud.entity.Address;
import com.zt.springcloud.entity.User;

import java.util.List;

/**
 * @author RedReins
 * @version 1.0
 * @description: TODO
 * @date 2021/9/2 23:16
 */

public interface UserService {
    /*
    * 根据用户名查询用户
    * */
    User getLoginUser(String username);

    /*
    * 检查用户信息
    * */
    ResultUtils<?> checkUser(String username, String password, String code, String uuid);

    /*
    * 注销
    * */
    ResultUtils<?> doLogout(String token);

    /*
    * 添加用户地址
    * */
    Integer addUserAddress(Address address);


    /*
     * 查询用户地址
     * */
    public List<Address> getAddressInfo(Long userid);

    /*
     * 更新用户地址
     * */
    public Integer updateAddressInfo(Address address);
}
